import request from "@/sheep/request";

export default {
  getThirdPartyCompanyItemList: (params) =>
    request({
      url: `/app_api.php?t=third_company&s=thirdParty&op=getThirdPartyCompanyItemList`,
      method: "POST",
      data: params,
    }),
  getThirdCompanyEdit: (params) =>
    request({
      url: `/app_api.php?t=third_company&s=thirdParty&op=getThirdCompanyEdit`,
      method: "POST",
      data: params,
    }),
  getThirdPartyCompanyIndex: (params) =>
    request({
      url: `/app_api.php?t=third_company&s=thirdParty&op=getThirdPartyCompanyIndex`,
      method: "POST",
      data: params,
    }),
  getThirdPartyCompanyInfo: (params) =>
    request({
      url: `/app_api.php?t=third_company&s=thirdParty&op=getThirdPartyCompanyInfo`,
      method: "POST",
      data: params,
    }),
  getThirdPartyCompanyEditForm: (params) =>
    request({
      url: `/app_api.php?t=third_company&s=thirdParty&op=getThirdPartyCompanyEditForm&XDEBUG_SESSION_START=12436`,
      method: "POST",
      data: params,
    }),
  getThirdPartyCompanyUserEditForm: (params) =>
    request({
      url: `/app_api.php?t=third_company&s=thirdParty&op=getThirdPartyCompanyUserEditForm`,
      method: "POST",
      data: params,
    }),
  deleteThirdPartyCompanyUser: (params) =>
    request({
      url: `/app_api.php?t=third_company&s=thirdParty&op=thirdPartyCompanyUserDel`,
      method: "POST",
      data: params,
    }),
  addDetail: (params) => {
    return request({
      url: `/app_api.php?t=third_company&s=thirdParty&op=addThirdPartyCompanyArchival`,
      method: "POST",
      data: params,
    });
  },
  delArchival: (params) => {
    return request({
      url: `/app_api.php?t=third_company&s=thirdParty&op=delThirdPartyCompanyArchival`,
      method: "POST",
      data: params,
    });
  },
  thirdPartyCompanyUserUpdatePassword: (params) =>
    request({
      url: `/app_api.php?t=third_company&s=thirdParty&op=thirdPartyCompanyUserUpdatePassword`,
      method: "POST",
      data: params,
    }),
   userEdit: (params) =>
    request({
      url: `/app_api.php?t=third_company&s=thirdParty&op=thirdPartyCompanyUserUpdateAvatarUrl`,
      method: "POST",
      data: params,
    }),
  getThirdPartyCompanyArchivalList: (params) =>
    request({
      url: `/app_api.php?t=third_company&s=thirdParty&op=getThirdPartyCompanyArchivalList`,
      method: "POST",
      data: params,
    }),
  getTaskList: (params) =>
    request({
      url: `/app_api.php?t=third_assess&s=thirdParty&op=getTaskList`,
      method: "POST",
      data: params,
    }),
  getThirdPartyCompanyUserEditForm: (params) =>
    request({
      url: `/app_api.php?t=third_company&s=thirdParty&op=thirdPartyCompanyUserEditForm`,
      method: "POST",
      data: params,
    }),
  getTaskManyUnityList: (params) =>
    request({
      url: `/app_api.php?t=third_assess&s=thirdParty&op=getTaskManyUnityList`,
      method: "POST",
      data: params,
    }),
  getDailyUnityAssessInfo: (params) =>
    request({
      url: `/app_api.php?t=third_assess&s=thirdParty&op=getDailyUnityAssessInfo`,
      method: "POST",
      data: params,
    }),
  getTaskUnityAssessInfo: (params) =>
    request({
      url: `/app_api.php?t=third_assess&s=thirdParty&op=getTaskUnityAssessInfo`,
      method: "POST",
      data: params,
    }),
  getItemCriteriaEdit: (params) =>
    request({
      url: `/app_api.php?t=third_assess&s=thirdParty&op=getItemCriteriaEdit`,
      method: "POST",
      data: params,
    }),
  getcompanyList: (params) =>
    request({
      url: `/app_api.php?t=third_assess&s=thirdParty&op=getCompanyList`,
      method: "POST",
      data: params,
    }),
  itemCriteriaEditForm: (params) =>
    request({
      url: `/app_api.php?t=third_assess&s=thirdParty&op=itemCriteriaEditForm`,
      method: "POST",
      data: params,
    }),
};
